package day4.Animal;

public class Animal {
    private  String color;
    public  int age;
    public static int num = 0;

    public static int getNum() {
        return num;
    }

    public String getColor(){
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void show(){
        System.out.println("父类的私有color："+getColor());
        System.out.println("父类的公开属性："+age);

    }

}
